package com.ruoyi.tongyan.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 立项管理对象 t_project
 * 
 * @author ruoyi
 * @date 2025-05-28
 */
public class TProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 项目负责人 */
    @Excel(name = "项目负责人")
    private String principalInvestigator;

    /** 立项日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "立项日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalDate;

    /** 资助金额 */
    @Excel(name = "资助金额")
    private BigDecimal fundingAmount;

    /** 合同ID */
    @Excel(name = "合同ID")
    private String contractId;

    /** 项目开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 预计结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 立项评审意见 */
    @Excel(name = "立项评审意见")
    private String approvalOpinion;

    /** 项目状态，包含立项、中期、结题 */
    @Excel(name = "项目状态，包含立项、中期、结题")
    private String statu;

    /** 申报和项目关联信息 */
    private List<TDeclarationProject> tDeclarationProjectList;

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setPrincipalInvestigator(String principalInvestigator) 
    {
        this.principalInvestigator = principalInvestigator;
    }

    public String getPrincipalInvestigator() 
    {
        return principalInvestigator;
    }
    public void setApprovalDate(Date approvalDate) 
    {
        this.approvalDate = approvalDate;
    }

    public Date getApprovalDate() 
    {
        return approvalDate;
    }
    public void setFundingAmount(BigDecimal fundingAmount) 
    {
        this.fundingAmount = fundingAmount;
    }

    public BigDecimal getFundingAmount() 
    {
        return fundingAmount;
    }
    public void setContractId(String contractId) 
    {
        this.contractId = contractId;
    }

    public String getContractId() 
    {
        return contractId;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setApprovalOpinion(String approvalOpinion) 
    {
        this.approvalOpinion = approvalOpinion;
    }

    public String getApprovalOpinion() 
    {
        return approvalOpinion;
    }
    public void setStatu(String statu) 
    {
        this.statu = statu;
    }

    public String getStatu() 
    {
        return statu;
    }

    public List<TDeclarationProject> getTDeclarationProjectList()
    {
        return tDeclarationProjectList;
    }

    public void setTDeclarationProjectList(List<TDeclarationProject> tDeclarationProjectList)
    {
        this.tDeclarationProjectList = tDeclarationProjectList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectId", getProjectId())
            .append("projectName", getProjectName())
            .append("principalInvestigator", getPrincipalInvestigator())
            .append("approvalDate", getApprovalDate())
            .append("fundingAmount", getFundingAmount())
            .append("contractId", getContractId())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("approvalOpinion", getApprovalOpinion())
            .append("statu", getStatu())
            .append("tDeclarationProjectList", getTDeclarationProjectList())
            .toString();
    }
}
